import request from '@/utils/request'

// 查询实验器材申请列表
export function listQicaishenqing(query) {
  return request({
    url: '/qiju/qicaishenqing/list',
    method: 'get',
    params: query
  })
}

// 查询实验器材申请详细
export function getQicaishenqing(equipmentApplicationId) {
  return request({
    url: '/qiju/qicaishenqing/' + equipmentApplicationId,
    method: 'get'
  })
}

// 新增实验器材申请
export function addQicaishenqing(data) {
  return request({
    url: '/qiju/qicaishenqing',
    method: 'post',
    data: data
  })
}

// 修改实验器材申请
export function updateQicaishenqing(data) {
  return request({
    url: '/qiju/qicaishenqing',
    method: 'put',
    data: data
  })
}

// 删除实验器材申请
export function delQicaishenqing(equipmentApplicationId) {
  return request({
    url: '/qiju/qicaishenqing/' + equipmentApplicationId,
    method: 'delete'
  })
}
// 申请实验器材申请
export function addE(equipmentApplicationId) {
  return request({
    url: '/qiju/qicaishenqing/' + equipmentApplicationId,
    method: 'post'
  })
}
